Changed order of sorting and now sort by occurance