Default sort by Identifier when browsing items


In my page : [](
I want to sort by default my collection items by Identifiers.

I can do it when clicking a sort button with :

$sortLinks[__(‘Date Esquisse’)] = ‘Dublin Core,Identifier’;

in items/browse.php

But I don’t know how to do it by default.

Any idea???

You could create a custom link with a query parameter like sort_field=Dublin+Core%2CIdentifier so that users get the sorted items by default.

For generated links (i.e. from the collections/show.php page), see: link_to_items_browse documentation. For example:

    'View all items in this collection sorted by identifier', 
    array('collection' => 74, 'sort_field'=>'Dublin Core,Identifier'),