Search order

Search ordering can be customised in ResourceSpace to change the way that results are shown.

These config options relate to search ordering.

  • $sort_fields array - Field references included in this array can be used to order searches. NB: fields added to this array will need to be added to the data_joins array, see config.default.php Note 1 for more detail. Further to this fields in this array can be set to order by dot notation (10.6+) in the Edit Metadata Field page.
  • $colour_sort boolean - If set to true resources can be ordered by dominant colour, resources without previews (for example audio) will be ordered last.
  • $popularity_sort boolean - If set to true resources can be ordered by the user rating, then total hit count.
  • $order_by_resource_id boolean - If set to true resources can be ordered by Resource ID.
  • $orderbyrating boolean - If set to true resources can be ordered by user rating.