There is a well known story about a scientist who gave a talk about the Earth and its place in the solar system. At the end of the talk, a woman refuted him with "That's rubbish; the Earth is really ...
These are for demonstration purposes only. There are many implementations of sorts in the JavaScript standard library that are much better for performance reasons.