0
我正在使用ActiveAndroid
庫。我需要獲得按integer
字段排序的我的對象列表。這裏是我如何試圖做到這一點:SQLite按整數值排序
public static List<Category> getCategories() {
try {
return new Select()
.all()
.from(Category.class)
.orderBy("NumInRow ASC") // NumInRow is my int field
.execute();
} catch (Exception ignored) {
return null;
}
}
我是對的嗎?