Fixed bug with sortOptions function that was caused by the options with the same text