Darren's Nugget 2009 / 02/ 16 Sorting arrays of clusters ... More information : GSDzone.net/community It can also sort a 1D Array of Clusters the element of the cluster (based on the cluster order) is used for the sort... first VS for clusters where the first element has the same value, the second element of the cluster is used, etc It can be used in sorting Array of String... Usually, you want to sort string arrays without worrying about the strings being uppercase/lowercase. Unfortunately, the ASCII values of the strings are used when sorting, so a simple sort would result in the following: So the technique I use is to sort an array of clusters of two elements...the first element is an all lowercase version of the string, and the second element is the original string. After the array is sorted, I then the second element from each cluster to generate an array of sorted strings unbundle Try It ...
More presentations by bin zhou
Popular presentations
Future-Proof Your Education
Maria Andersen on
How do you prepare for uncertain career paths where technical knowledge doubles every two years? You pay attention to the skills that surround the content: ...
More popular prezis in Explore>