Bug#593003: playonlinux: patch to add natural sort for Wine Versions lists

Craig Sanders cas at taz.net.au
Sun Aug 15 01:19:43 UTC 2010


Package: playonlinux
Version: 3.7.6-1
Tags: patch

it's been bugging me for months that the version numbers in the
Available Wine Versions list box are ASCII-sorted rather than
natural-sorted, so i hacked in a natural sort i found on the net at
http://code.activestate.com/recipes/285264/#c6

It was written by Paul Clinch, and the license is the PSF Python
License, http://www.python.org/psf/license/ (GPL compatible)


this sorts version numbers properly (e.g. so 0.9.7 sorts lower than
0.9.10) and ensures that the latest versions are always at the top of
the list, so you don't have to scroll to the middle of the long list
just to find out if there's a new version of wine available.

(there may be other places in the code where a natural sort would be
more useful than an ascii sort. don't know, haven't looked.)


the playonlinux.com web site doesn't seem to have a contact email
address, so please also submit upstream.

thanks,

craig

-- 
craig sanders <cas at taz.net.au>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine_versions.py.patch
Type: text/x-diff
Size: 1642 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20100815/5ea66af4/attachment.patch>


More information about the Pkg-games-devel mailing list