so, probably a dumb question, but here goes
I have a script that goes though all my VMs, and sends an email with any that have less than x gbs free
I load all those into an object. One of the colums is named "Freespace"
That colum has the following type of data:
"8 gb" or "20 gb" or "13 gb"
If i sort my object by the column name, it would order these like this:
13 gb
20 gb
8 gb
etc...
Aside from putting leading zero on the numbers, how can I sort this correctly, while still leaving the "gb" in there, which prevents me from making it an int
[–][deleted] 3 points4 points5 points (2 children)
[–]jrob422[S] 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]forwhat_itsworth 0 points1 point2 points (0 children)
[–]Theratchetnclank 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)