Default sort by Identifier when browsing items

Hi,

In my page : [http://catalogue.cappiello.fr/items/browse?collection=74](http://catalogue.cappiello.fr/items/browse?collection=7
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.

http://catalogue.cappiello.fr/items/browse?collection=74&sort_field=Dublin+Core%2CIdentifier

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

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