Commit 35e9115f authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

sort tasks by level

parent 9483ec79
......@@ -34,6 +34,7 @@ public class TasksRepository extends Repository<Task>
public List<Task> getAllPublic()
{
return datastore.createQuery(Task.class)
.order("level")
.retrievedFields(true, DBObjectUtils.getPublicFields(Task.class))
.asList();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment