# HG changeset patch # User Gregory Szorc # Date 2018-03-11 04:54:44 # Node ID 97e1dda94af8a6f604102b42734f4f2060d3c0b2 # Parent 4daa22071d5dd4d5205be425f171991788000cbc hgweb: fix a bug due to variable name typo It looks like the "sort" query string parameter was not being honored properly. Differential Revision: https://phab.mercurial-scm.org/D2804 diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -481,7 +481,7 @@ class hgwebdir(object): sortable = ["name", "description", "contact", "lastchange"] sortcolumn, descending = sortdefault if 'sort' in wsgireq.req.qsparams: - sortcolum = wsgireq.req.qsparams['sort'] + sortcolumn = wsgireq.req.qsparams['sort'] descending = sortcolumn.startswith('-') if descending: sortcolumn = sortcolumn[1:]