Giter Site home page Giter Site logo

Alphabetising about zpanelx HOT 3 OPEN

zpanel avatar zpanel commented on August 22, 2024
Alphabetising

from zpanelx.

Comments (3)

TGates71 avatar TGates71 commented on August 22, 2024

This is a good suggestion ;) I thought it was fixed a while back, but I noticed too that it is not. Should be very easy to do too, just need to add ASC at the end of the DB query.

from zpanelx.

stokes84 avatar stokes84 commented on August 22, 2024

@TGates71 is right this is pretty easy for someone that has some time to run through the module controllers real quick (or possibly a higher level solution somewhere?).

Fore example in the MySQL Database list @ /etc/zpanel/panel/modules/mysql_databases/code/controller.ext.php on line 41 you have the query...

$sql = "SELECT * FROM x_mysql_databases WHERE my_acc_fk=:uid AND my_deleted_ts IS NULL";

Just toss ORDER BY my_name_vc at the end. ``my_name_vc` is the key here to organize from you can find your key for each module easily using phpMyAdmin if needed. So our finished product that'll we'll want in line 41 is...

$sql = "SELECT * FROM x_mysql_databases WHERE my_acc_fk=:uid AND my_deleted_ts IS NULL ORDER BY my_name_vc";

and boom, you got a sorted list. You can also probably bust out php's asort on this too but MySQL is optimized to do tasks like this.

from zpanelx.

zHostingSolutions avatar zHostingSolutions commented on August 22, 2024

Package Manager is also not alphabetizing. I think it's the last thing that I recently found. I'm not sure.

from zpanelx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.