put direcotry in to some order