Fixed sorting empty folders bug