Handler: QueryOptions: Change default to more natural ascending sort
This commit is contained in:
والد
821d799e3e
کامیت
b9ff4068bd
@ -71,11 +71,8 @@ QueryOption Handler::queryOption(const Request &r) const
|
|||||||
result.offset = 0;
|
result.offset = 0;
|
||||||
}
|
}
|
||||||
std::string order = r.get("sort");
|
std::string order = r.get("sort");
|
||||||
if(order == "0")
|
result.order = ASCENDING;
|
||||||
{
|
if(order == "1")
|
||||||
result.order = ASCENDING;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
result.order = DESCENDING;
|
result.order = DESCENDING;
|
||||||
}
|
}
|
||||||
|
بارگذاری…
مرجع در شماره جدید
Block a user