On 03/02/2015 01:38 PM, Charles Heizer wrote:
Sorry,

sortedlist = sorted(mylist , key=lambda elem: "%s %s" % (elem['name'], 
LooseVersion(elem['version'])), reverse=True)

This is what I was trying but LooseVersion() was not sorting version numbers like I thought it 
would. You will notice that Chrome version "40.0.2214.111" is higher than 
"40.0.2214.91" but in the end result it's not sorting it that way.


Please don't top-post.  put your remarks after whatever quoting you do.

You still haven't posted your LooseVersion() function source. I agree with Emile that it's likely to be the problem.


--
DaveA
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to