partial sort, 1 for loop
map & filter