fixes #27. Sorted by type,kyu,age