Closed dag7dev closed 2 years ago
They are almost the same.
Anyway, just docs is missing, we must document "sort_by" and "order_by" in README (even if it's pretty self-explanatory)
order_by: give the result set ordering by a certain field. Fields are the columns of the database. It is the classic order_by SQL operation.
sort_by: to use in conjuction with order_by, allowed fields <asc, desc>
Solves https://github.com/gbdev/homebrewhub/issues/21
@avivace I totally forgot it. I added something, but I don't know if it is enough...I mean, sort and order will not print money, so I think they are pretty self-explanatory.
They are almost the same.
Anyway, just docs is missing, we must document "sort_by" and "order_by" in README (even if it's pretty self-explanatory)
order_by: give the result set ordering by a certain field. Fields are the columns of the database. It is the classic order_by SQL operation.
sort_by: to use in conjuction with order_by, allowed fields <asc, desc>
Solves https://github.com/gbdev/homebrewhub/issues/21