Skip to content

Commit

Permalink
Make sorting documentation more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
jaladh-singhal committed Dec 11, 2024
1 parent 4a83b9b commit 9383656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/usage/viewing-tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ without showing the table in the viewer, use :meth:`FireflyClient.fetch_table`:
fc.fetch_table(file_on_server=tval, tbl_id='invisible-table')
Alternatively, you can turn off the `visible` parameter in :meth:`FireflyClient.fetch_table`:
Alternatively, you can turn off the `visible` parameter in :meth:`FireflyClient.show_table`:

.. code-block:: py
Expand Down Expand Up @@ -67,3 +67,5 @@ order:
.. code-block:: py
fc.sort_table_column(tbl_id=tbl_id_2mass_psc, column_name='j_m', sort_direction='ASC')
If a column has sorting, it can be removed by specifying `sort_direction=''`.
4 changes: 2 additions & 2 deletions firefly_client/firefly_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1952,8 +1952,8 @@ def sort_table_column(self, tbl_id, column_name, sort_direction=''):
column_name : `str`
Name of the table column to sort
sort_direction : {'', 'ASC', 'DESC'}, optional
Direction of sort: '' for unsorted, 'ASC' for ascending, and 'DESC'
for descending. Default is ''.
Direction of sort: '' for unsorted (or for removing the sort),
'ASC' for ascending, and 'DESC' for descending. Default is ''.
Returns
--------
Expand Down

0 comments on commit 9383656

Please sign in to comment.