fixed sort to be case insensitive