added code for sort in filter sample video