mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
sort getAll result
This commit is contained in:
@@ -536,17 +536,19 @@ public abstract class AbstractManagerResource<T extends ModelObject,
|
||||
if (Util.isEmpty(sortby))
|
||||
{
|
||||
|
||||
// replace with somethind useful
|
||||
// replace with something useful
|
||||
sortby = "id";
|
||||
}
|
||||
|
||||
items = manager.getAll(createComparator(sortby, desc), start, limit);
|
||||
}
|
||||
else if (Util.isNotEmpty(sortby))
|
||||
{
|
||||
items = manager.getAll(createComparator(sortby, desc));
|
||||
}
|
||||
else
|
||||
{
|
||||
items = manager.getAll();
|
||||
|
||||
// TODO sort result if sortby is not empty
|
||||
}
|
||||
|
||||
return items;
|
||||
|
||||
Reference in New Issue
Block a user