mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
DualIndexSQLiteObject: make _sort prefix more consistent
This commit is contained in:
parent
0a034814ad
commit
b7240d3bdc
@ -361,9 +361,10 @@ sub get_each {
|
||||
}
|
||||
|
||||
if ($key eq '_sort') {
|
||||
if ($value =~ /^\-/) {
|
||||
if ($value =~ s/^\-//) {
|
||||
push @sort, "$value DESC";
|
||||
} else {
|
||||
$value =~ s/^\+//; # optional
|
||||
push @sort, "$value ASC";
|
||||
}
|
||||
next;
|
||||
|
Loading…
Reference in New Issue
Block a user