Skip to content
Browse files

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

Sort the query field names.
  • Loading branch information...
2 parents e9a2bb5 + 4c77649 commit 3ed645a0c5f54886ededc1271088c44343dbedb3 @mlazarov committed Apr 12, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/collection.php
View
3 app/controllers/collection.php
@@ -151,6 +151,7 @@ public function doIndex() {
//read fields from collection
import("models.MCollection");
$this->nativeFields = MCollection::fields($db, $this->collection);
+ sort($this->nativeFields);
$this->queryFields = x("query_fields");
if (!is_array($this->queryFields)) {
$this->queryFields = array();
@@ -961,4 +962,4 @@ public function doCollectionImport() {
}
}
-?>
+?>

0 comments on commit 3ed645a

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