I the values are actually numeric, they should be stored as numerics, manipulated as numerics, and sorted as numerics. So... the question is: WHY ARE THEY STRINGS? -----Original Message----- From: binh / pigbaby.net [mailto:binh / pigbaby.net] Sent: Sunday, October 12, 2008 7:24 PM To: ruby-talk ML Subject: Sorting help Hello All, I would like to request some helping with a sorting problem I have. Given an array with values like this ["10.1", "7.4", "10.9", "10.11", "10.10"] when I sort it i get something like ["10.1", "10.10", "10.11", "10.9", "7.4"] What is the best way to sort such an array of strings? What if the string was extended to "10.1.25". Any advice would be greatly appreciated. Thank you. Binh -- Posted via http://www.ruby-forum.com/.