Skip to content

Commit

Permalink
org: Change list ordering method to desc
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Jul 11, 2017
1 parent 099dee7 commit 93487a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/Organization.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static PagingList<Organization> findByNameLike(String name) {
return find.where().or(
Expr.like("name", "%" + name + "%"),
Expr.like("descr", "%" + name + "%")
).findPagingList(30);
).orderBy("id desc").findPagingList(30);
}

public static boolean isNameExist(String name) {
Expand Down

0 comments on commit 93487a1

Please sign in to comment.