Skip to content
Snippets Groups Projects
Commit 8b0592f6 authored by Christian Dresen's avatar Christian Dresen
Browse files

Fixed Order of Products / Category

parent 3fa6457e
No related branches found
No related tags found
No related merge requests found
...@@ -50,8 +50,8 @@ public class Category extends Model { ...@@ -50,8 +50,8 @@ public class Category extends Model {
public static List<Category> getAll() { public static List<Category> getAll() {
return new Select() return new Select()
.from(Category.class) .from(Category.class)
.orderBy("position")
.orderBy("name") .orderBy("name")
.orderBy("position")
.execute(); .execute();
} }
......
...@@ -131,8 +131,8 @@ public class Product extends Model { ...@@ -131,8 +131,8 @@ public class Product extends Model {
return new Select() return new Select()
.from(Product.class) .from(Product.class)
.where("category = ?", category) .where("category = ?", category)
.orderBy("position")
.orderBy("name") .orderBy("name")
.orderBy("position")
.execute(); .execute();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment