Implemented custom sort dirs cycle. refs #643 GitHub: refs #2