learn to order an directory