Sort:  

Just Read my program, it helps doing the filtering