Overview

This article describes how to set the default sort order for items displayed on per-item-set pages in Omeka S.

Specifically, this concerns the initial sort order for screens like the following. By default, it is set to “Date created” in “Descending” order.

The method differs between Omeka v4 and v3, so I’ll explain each below.

v4

Access the following per-site settings screen.

/admin/site/s/#site-settings

Then, set the field and ascending/descending order in the “Item browse defaults” section below.

Note that the sort order set here will also change the initial sort order of the item list page, not just the item set page.

Therefore, as shown below, you can set a different default sort order for the item list by configuring the query settings in the navigation, allowing different default sort orders for each.

/admin/site/s//navigation

There may be better methods, but I hope this serves as a helpful reference as one approach.

v3

For v3, add the following module.

https://github.com/Daniel-KM/Omeka-S-module-Next

After installation, the following items are added to the per-site settings screen.

/admin/site/s/#site-settings

The instructions state:

Set order for item set, one by row, format “id,id,id property order”. Use “0” for the default.

For example, entering 0 dcterms:title asc sets the default sort order for items in item sets to ascending order by dcterms:title. If you want to change the setting for a specific item set, specify that item set’s ID. Example: 75532 dcterms:title asc

Summary

This article described how to set the default sort order for items displayed on per-item-set pages in Omeka S. There may be better methods, but I hope this serves as a helpful reference as one approach.