Fixed problem with ordering the columns in the results page (Fixes #467)