Closed hornta closed 7 years ago
$database->select("account", "user_id", [ // Single condition "ORDER" => "user_id", ]);
The default is in ascending or descending order ?
@wakerman @doodlemeat
$database->select("account", "user_id", [
// Single condition
"ORDER" => ["user_id" => "ASC"],
/* or: "ORDER" => ["user_id" => "DESC"], */
]);
Thanks. It's fixed now.
@wakerman I understand how to do it. The docs were just incorrect.
http://medoo.in/api/select
Do a search for ORDER syntax and you notice it uses the old way of writing the ORDER BY clause. Since the docs site don't have a repo I can't make a pull request so I hope author sees this and changes 👍