fix sorting of undefined with string