Skip to content

Commit

Permalink
order matters for DataTables
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed May 12, 2017
1 parent 58edff2 commit 8a2a167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiita_pet/handlers/qiita_redbiom.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ def _redbiom_search(self, query, search_on, callback):
a.artifact_id
JOIN qiita.artifact_type at ON (
at.artifact_type_id = a.artifact_type_id
AND artifact_type = 'BIOM')
ORDER BY artifact_id),
AND artifact_type = 'BIOM')),
parent_query AS (
SELECT artifact_query.*,
array_agg(parent_params) as parent_parameters
Expand All @@ -114,6 +113,7 @@ def _redbiom_search(self, query, search_on, callback):
artifact_query.command_id,
artifact_query.artifact_id)
SELECT * FROM parent_query
ORDER BY parent_parameters, artifact_id
"""

sql_params = """
Expand Down

0 comments on commit 8a2a167

Please sign in to comment.