rearranged order of items (dirs first)