added sorting on catalogue view