Sort keywords case insensitively and handle missing keys

We want to sort keywords (can contain alphabets, numbers and special chars) case insensitively and always put the missing and null keys to the end regardless of whether we do ascending or descending sort. What is the best way to do this in ES 5.0? We are exploring script sorting or writing a custom comparator. Please advise. Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.