View Source RecordListEcto.SortStep (record_list_ecto v0.1.2)

Apply sorting and ordering to a query.

options

Options

  • :default_sort - Required. The default value for sorting if none are present in the params.

  • :default_order - Required. The default value for ordering if none are present in the params.

  • :nulls_last - Determine wether sorting should put null values last. Default to false. The default value is false.

  • :sort_keys - The path to be passed to get_in/2 to extract the sort parameter The default value is ["sort"].

  • :order_keys - The path to be passed to get_in/2 to extract the order parameter The default value is ["order"].