Views do support sorting now, refs #508

pull/783/head
Simon Willison 2020-05-28 11:54:57 -07:00
rodzic 3e8932bf64
commit 7ccd55a163
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -210,7 +210,7 @@ This will restrict sorting of ``example_table`` to just the ``height`` and
You can also disable sorting entirely by setting ``"sortable_columns": []``
By default, database views in Datasette do not support sorting. You can use ``sortable_columns`` to enable specific sort orders for a view called ``name_of_view`` in the database ``my_database`` like so:
You can use ``sortable_columns`` to enable specific sort orders for a view called ``name_of_view`` in the database ``my_database`` like so:
.. code-block:: json