Fixed sorting and nested array on listing media and lists