added capability of setting simple number for sorting directions