Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #4 from jpnance/sort-query-fields

Sort the query field names.
  • Loading branch information...
commit 3ed645a0c5f54886ededc1271088c44343dbedb3 2 parents e9a2bb5 + 4c77649
Martin Lazarov authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  app/controllers/collection.php
3  app/controllers/collection.php
@@ -151,6 +151,7 @@ public function doIndex() {
151 151 //read fields from collection
152 152 import("models.MCollection");
153 153 $this->nativeFields = MCollection::fields($db, $this->collection);
  154 + sort($this->nativeFields);
154 155 $this->queryFields = x("query_fields");
155 156 if (!is_array($this->queryFields)) {
156 157 $this->queryFields = array();
@@ -961,4 +962,4 @@ public function doCollectionImport() {
961 962 }
962 963 }
963 964
964   -?>
  965 +?>

0 comments on commit 3ed645a

Please sign in to comment.
Something went wrong with that request. Please try again.