Closed JamesMcIntosh closed 5 years ago
The default sort order is ascending = false which is opposite to how all database implement Order By. Can I recommend changing to ascending = true
ascending = false
ascending = true
Find orderBy(String column, [bool ascending = false]) { _orderBy.add(OrderBy(column, ascending)); return this; } Find orderByMany(List<String> columns, [bool ascending = false]) { columns.forEach((String column) { _orderBy.add(OrderBy(column, ascending)); }); return this; }
@JamesMcIntosh That would be a breaking change.
@tejainece Yes, I would recommend doing it when you do the next major version release.
Fixed in 4.x.x
The default sort order is
ascending = false
which is opposite to how all database implement Order By. Can I recommend changing toascending = true