hw2 - filtered and ordered