Changeset 16027
- Timestamp:
- 02/07/08 12:16:36 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/intermine/pathquery/main/src/org/intermine/pathquery/PathQuery.java
r16025 r16027 637 637 } 638 638 639 /** 640 * Removes everything from the order by list and adds the first path in the view list 641 */ 642 public void resetOrderBy() { 643 sortOrder.clear(); 644 validateOrderBy(); 645 } 646 639 647 640 648 /*****************************************************************************/ trunk/intermine/web/main/src/org/intermine/web/struts/SortOrderChange.java
r16024 r16027 50 50 PathQuery query = (PathQuery) session.getAttribute(Constants.QUERY); 51 51 52 query.reset SortOrder();52 query.resetOrderBy(); 53 53 54 54 return new ForwardParameters(mapping.findForward("query")) … … 75 75 PathQuery query = (PathQuery) session.getAttribute(Constants.QUERY); 76 76 77 if (direction == null) { 78 direction = "asc"; 77 Boolean sortAscending = Boolean.TRUE; 78 if (direction != null && direction.equals("desc")) { 79 sortAscending = Boolean.FALSE; 79 80 } 80 81 query.setOrderBy(path, direction); 81 query.setOrderBy(path, sortAscending); 82 82 83 83 return new ForwardParameters(mapping.findForward("query"))
