Added options sorting.