epg: add additional sort code