Fixed localeCompare unit tests to skip on PhantomJS

PhantomJS has a bug in localeCompare so some sorting tests can't be run
on it.