Sorting by type ( folders first ) the items