[Tutor] sorting of unicode text

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Thu Mar 11 12:23:27 EST 2004



On Thu, 11 Mar 2004, stig mattsson wrote:

> I am completely new to Python and I need to make the alphabetical
> sorting of a text utf8 file. Is it possible to make such a sorting with
> Python? Could you please give me an example? Thank you.

Hi Stig,

Sure; have you had a chance to look at:

    http://www.amk.ca/python/howto/sorting/sorting.html

That Sorting HOWTO has a few examples of using sort() to order a list, and
should help you get started.


If you have questions, please feel free to ask!




More information about the Tutor mailing list