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 {
public static List<Category> getAll() {
return new Select()
.from(Category.class)
.orderBy("position")
.orderBy("name")
.orderBy("position")
.execute();
}
......
......@@ -131,8 +131,8 @@ public class Product extends Model {
return new Select()
.from(Product.class)
.where("category = ?", category)
.orderBy("position")
.orderBy("name")
.orderBy("position")
.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