dohuythai Chevereto Member Mar 18, 2016 #1 As title, could someone tell me how to do that? (I don't want remove all categories and re-make them 🙁)
As title, could someone tell me how to do that? (I don't want remove all categories and re-make them 🙁)
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Mar 18, 2016 #2 Categories are sorted alphabetically. Can't be modified.
dohuythai Chevereto Member Mar 18, 2016 #3 Rodolfo said: Categories are sorted alphabetically. Can't be modified. Click to expand... I know but it's crazy if can't modified ordering, could you please process this? thanks
Rodolfo said: Categories are sorted alphabetically. Can't be modified. Click to expand... I know but it's crazy if can't modified ordering, could you please process this? thanks
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Mar 18, 2016 #4 app/loader.php PHP: $categories_db = DB::queryFetchAll('SELECT * FROM ' . DB::getTable('categories') . ' ORDER BY category_name ASC;'); You will need to edit the ORDER BY clause. http://dev.mysql.com/doc/refman/5.7/en/sorting-rows.html
app/loader.php PHP: $categories_db = DB::queryFetchAll('SELECT * FROM ' . DB::getTable('categories') . ' ORDER BY category_name ASC;'); You will need to edit the ORDER BY clause. http://dev.mysql.com/doc/refman/5.7/en/sorting-rows.html
dohuythai Chevereto Member Mar 20, 2016 #5 Rodolfo said: app/loader.php PHP: $categories_db = DB::queryFetchAll('SELECT * FROM ' . DB::getTable('categories') . ' ORDER BY category_name ASC;'); You will need to edit the ORDER BY clause. http://dev.mysql.com/doc/refman/5.7/en/sorting-rows.html Click to expand... Thank you, I got it Hope next version you will add a ordering in setting, so we can use it easy to ordering by myself Here is example: https://jqueryui.com/sortable/
Rodolfo said: app/loader.php PHP: $categories_db = DB::queryFetchAll('SELECT * FROM ' . DB::getTable('categories') . ' ORDER BY category_name ASC;'); You will need to edit the ORDER BY clause. http://dev.mysql.com/doc/refman/5.7/en/sorting-rows.html Click to expand... Thank you, I got it Hope next version you will add a ordering in setting, so we can use it easy to ordering by myself Here is example: https://jqueryui.com/sortable/