Make the sort options work (bug 867272)