File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,23 @@ class QueryBuilder<T extends ParseObject> {
32
32
/// [String] order will be the column of the table that the results are
33
33
/// ordered by
34
34
void orderByAscending (String order) {
35
- limiters['order' ] = order;
35
+ if (limiters.isEmpty) {
36
+ limiters['order' ] = order;
37
+ } else {
38
+ limiters['order' ] = limiters['order' ] + ',' + order;
39
+ }
36
40
}
37
41
38
42
/// Sorts the results descending order.
39
43
///
40
44
/// [String] order will be the column of the table that the results are
41
45
/// ordered by
42
46
void orderByDescending (String order) {
43
- limiters['order' ] = '-$order ' ;
47
+ if (limiters.isEmpty) {
48
+ limiters['order' ] = '-$order ' ;
49
+ } else {
50
+ limiters['order' ] = limiters['order' ] + ',' + '-$order ' ;
51
+ }
44
52
}
45
53
46
54
/// Define which keys in an object to return.
You can’t perform that action at this time.
0 commit comments