Apply sorting on the tv items