From: Eric Price Date: Tue, 22 Apr 2008 01:22:55 +0000 (-0400) Subject: Sort hvm/paravm list alphabetically. X-Git-Tag: sipb-xen-www/3.4~26 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/96d25596909648779ec4703abb25f489a33ca4aa Sort hvm/paravm list alphabetically. svn path=/trunk/packages/sipb-xen-www/; revision=441 --- diff --git a/code/templates/functions.tmpl b/code/templates/functions.tmpl index c3aa050..a746145 100644 --- a/code/templates/functions.tmpl +++ b/code/templates/functions.tmpl @@ -14,7 +14,7 @@ #end def #def vmTypeList($default=None) -#for $vmtype in $sipb_xen_database.Type.select() +#for $vmtype in sorted($sipb_xen_database.Type.select(), key=lambda x: x.description)