{"html_url": "https://github.com/simonw/sqlite-utils/issues/76#issuecomment-614440032", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/76", "id": 614440032, "node_id": "MDEyOklzc3VlQ29tbWVudDYxNDQ0MDAzMg==", "user": {"value": 10501166, "label": "metab0t"}, "created_at": "2020-04-16T06:23:29Z", "updated_at": "2020-04-16T06:23:29Z", "author_association": "NONE", "body": "Thanks for your hard work!", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 549287310, "label": "order_by mechanism"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/76#issuecomment-614400533", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/76", "id": 614400533, "node_id": "MDEyOklzc3VlQ29tbWVudDYxNDQwMDUzMw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-04-16T03:51:26Z", "updated_at": "2020-04-16T03:51:26Z", "author_association": "OWNER", "body": "Documentation here: https://sqlite-utils.readthedocs.io/en/stable/python-api.html#listing-rows", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 549287310, "label": "order_by mechanism"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/76#issuecomment-614400454", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/76", "id": 614400454, "node_id": "MDEyOklzc3VlQ29tbWVudDYxNDQwMDQ1NA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-04-16T03:51:01Z", "updated_at": "2020-04-16T03:51:01Z", "author_association": "OWNER", "body": "Released in 2.6", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 549287310, "label": "order_by mechanism"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/76#issuecomment-614354219", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/76", "id": 614354219, "node_id": "MDEyOklzc3VlQ29tbWVudDYxNDM1NDIxOQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-04-16T01:01:34Z", "updated_at": "2020-04-16T01:01:34Z", "author_association": "OWNER", "body": "I think a neat way to do this would be with an optional argument for `.rows_where()`:\r\n\r\n```python\r\nrows = db[\"table\"].rows_where(\"age > 10\", order_by=\"age desc\")\r\n```\r\n\r\nIf you want everything you can use this:\r\n\r\n```python\r\nrows = db[\"table\"].rows_where(order_by=\"age desc\")\r\n```\r\n\r\nIt's a tiny bit weird calling `.rows_where()` without a where clause, but I think it makes sense here - especially since `.rows` is a property that can't take any arguments - though under the hood it actually does this:\r\n\r\nhttps://github.com/simonw/sqlite-utils/blob/ad6ac19470a67867b96cb4c086450b8e4e46bf02/sqlite_utils/db.py#L436-L443", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 549287310, "label": "order_by mechanism"}, "performed_via_github_app": null}