{"html_url": "https://github.com/simonw/datasette/issues/702#issuecomment-603631746", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/702", "id": 603631746, "node_id": "MDEyOklzc3VlQ29tbWVudDYwMzYzMTc0Ng==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-03-25T04:19:36Z", "updated_at": "2020-03-25T04:19:36Z", "author_association": "OWNER", "body": "Shipped in 0.39: https://datasette.readthedocs.io/en/latest/changelog.html#v0-39", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 585390482, "label": "Option in metadata.json to set default sort order for a table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/702#issuecomment-602139031", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/702", "id": 602139031, "node_id": "MDEyOklzc3VlQ29tbWVudDYwMjEzOTAzMQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-03-22T02:36:09Z", "updated_at": "2020-03-22T02:36:09Z", "author_association": "OWNER", "body": "Found a bug: if you click on a column with a default sort order applied to it you get: \"Cannot use _sort and _sort_desc at the same time\"", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 585390482, "label": "Option in metadata.json to set default sort order for a table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/702#issuecomment-602138528", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/702", "id": 602138528, "node_id": "MDEyOklzc3VlQ29tbWVudDYwMjEzODUyOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-03-22T02:29:23Z", "updated_at": "2020-03-22T02:29:23Z", "author_association": "OWNER", "body": "Documentation: https://datasette.readthedocs.io/en/latest/metadata.html#setting-a-default-sort-order", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 585390482, "label": "Option in metadata.json to set default sort order for a table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/702#issuecomment-602122492", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/702", "id": 602122492, "node_id": "MDEyOklzc3VlQ29tbWVudDYwMjEyMjQ5Mg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-03-22T00:01:56Z", "updated_at": "2020-03-22T00:01:56Z", "author_association": "OWNER", "body": "I'm going to mirror the URL syntax here, so the options in `metadata.json` will be:\r\n\r\n* `\"sort\": \"created\"` to default sort by created\r\n* `\"sort_desc\": \"created\"` to default sort by created descending\r\n\r\nIt will throw an error if you try to define both.\r\n\r\nIf I add the ability to sort by multiple columns in the future (#197) I can allow a list of columns here - though I'm not sure how I would represent \"sort by created asc, title desc\" in that case.\r\n\r\nIf you want to disable user-specified sorting you can do so using the existing `\"sortable_columns\": []` mechanism.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 585390482, "label": "Option in metadata.json to set default sort order for a table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/702#issuecomment-601963535", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/702", "id": 601963535, "node_id": "MDEyOklzc3VlQ29tbWVudDYwMTk2MzUzNQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-03-21T00:20:50Z", "updated_at": "2020-03-21T00:20:50Z", "author_association": "OWNER", "body": "I can solve #677 (The first time you click sort by ID it should show you results in reverse order) at the same time.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 585390482, "label": "Option in metadata.json to set default sort order for a table"}, "performed_via_github_app": null}