test working for sorting by type and size