A problem of sorts
December 18, 2007 5:12 AM
Subscribe
This is a very basic Word 2003 question. I have a list of 50 countries in descending alfabetical order. I've used the "convert text to table function" in Word (2003) to put them in a table (5 columns, 10 rows). Up to here, everything is fine.
However, they've been automatically sorted alphabetically from left to right and then from top to bottom (first by column and then by row). I want them to be sorted alphabetically the other way around (top to bottom and then left to right - by row and then column). Is there any way to do this automatically without having to manipulate the data or adding it manually to the table? It's a very simple table and it wouldn't take a very long time but I'm just curious to see how others would tackle this very simple problem.
Thanks
posted by juva to computers & internet (9 comments total)
If all else fails, (I really am a one-trick pony) then a tiny bit of Python:
>>> x = ((1,2,3),(4,5,6),(7,8,9))
>>> zip(*x)
[(1, 4, 7), (2, 5, 8), (3, 6, 9)]
posted by cmiller at 5:24 AM on December 18, 2007