Sorting a String
In the forums this morning PepsiHog asked for some code to sort a string of numbers. We have a built-in method for sorting arrays. But here we want to sort a string of characters. E.g. we want the string “4731” to end up as “1347”. I ended up writing a reusable subroutine which will sort […]