The beauty of using JavaScript on the front- and back-end

The beauty of using JavaScript on the front- and back-end: I can use identical sort functions, assured that I’ll be getting the same result. (If I was really slick, this would be shared code and I could update it in the same place.)