added test for both sorting by size and type