sortable behavior - make sort_ids() to be callable from any collection