add sorting options to views