Sort hvm/paravm list alphabetically.
[invirt/packages/invirt-web.git] / code / templates / functions.tmpl
index c3aa050..a746145 100644 (file)
@@ -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)
 <label>
    <input #slurp
 #if $default == $vmtype then 'checked' else ''