As XML finds its place in information technology, query languages for XML attract much attention. Among them XPath is the most known. This article reveals a surprising fact that the upcoming XPath 2.0 is capable of sorting sequences, which is proved formally. We also mark out an incompleteness of XQuery Core and an insufficiency of definition of XQuery Core sorting semantics. The fact that XPath 2.0 can sort arbitrary sequences is used to fix it.