Examples of sort()


Examples of org.neo4j.index.lucene.QueryContext.sort()

      if (sortKey != null) {

        Integer sortType = sortKey.getSortType();
        if (sortType != null) {

          queryContext.sort(new Sort(new SortField(sortKey.dbName(), sortType, sortDescending)));

        } else {

          queryContext.sort(new Sort(new SortField(sortKey.dbName(), Locale.getDefault(), sortDescending)));
        }
View Full Code Here

Examples of org.opengis.filter.FilterFactory.sort()

        // TODO: enable this when JTS learns how to compute centroids
        // without triggering the
        // generation of Coordinate[] out of the sequences...
        // q.setHints(new Hints(Hints.JTS_COORDINATE_SEQUENCE_FACTORY,
        // PackedCoordinateSequenceFactory.class));
        q.setSortBy(new SortBy[] { ff.sort(attribute, SortOrder.DESCENDING) });

        // return the reader
        return fs.getFeatures(q).features();
    }
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.sort()

           
            // check we have the two granules we expect
            GranuleSource source = reader.getGranules("O3", true);
            FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
            Query q = new Query(Query.ALL);
            q.setSortBy(new SortBy[] {ff.sort("time", SortOrder.ASCENDING)});
            SimpleFeatureCollection granules = source.getGranules(q);
            assertEquals(2, granules.size());
            it = granules.features();
            assertTrue(it.hasNext());
            SimpleFeature f = it.next();
View Full Code Here

Examples of org.openntf.domino.helpers.DocumentSorter.sort()

    String sSearch = "FIELD Author contains \"Aline Winters\"";
    org.openntf.domino.DocumentCollection dc = Factory.getSession().getCurrentDatabase().FTSearch(sSearch, 500);
    List criteria = new ArrayList();
    criteria.add("Date");
    DocumentSorter sorter = new org.openntf.domino.helpers.DocumentSorter(dc, criteria);
    DocumentCollection results = sorter.sort();
    ExtLibUtil.getViewScope().put("javaTest", results.getCount());
    return results;
  }

  public void processFormula() {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.EncodingComboBoxModel.sort()

      {
        final String description = defaultEncodingModel.getDescription(i);
        retval.addEncoding(encoding, description);
      }
    }
    retval.sort();
    final Object oldSelectedValue = encodingComboBox.getSelectedItem();
    encodingComboBox.setModel(retval);
    encodingComboBoxModel = retval;
    encodingComboBoxModel.setSelectedItem(oldSelectedValue);
  }
View Full Code Here

Examples of org.pentaho.reporting.tools.configeditor.model.ConfigDescriptionModel.sort()

        return;
      }

      final ConfigDescriptionModel model = getModel();
      model.importFromConfig(configurationToEdit);
      model.sort();
      setStatusText(getResources().getString("config-description-editor.import-complete")); //$NON-NLS-1$
    }
  }

  /**
 
View Full Code Here

Examples of org.picketlink.idm.api.IdentitySearchCriteria.sort()

        if (log.isTraceEnabled()) {
            Tools.logMethodIn(log, LogLevel.TRACE, "load", new Object[] { "index", index, "length", length });
        }

        IdentitySearchCriteria crit = new IdentitySearchCriteriaImpl().page(index, length);
        crit.sort(SortOrder.ASCENDING);

        List<Role> roles = null;

        if (group != null) {
            roles = new LinkedList<Role>(getIDMService().getIdentitySession().getRoleManager().findRoles(group, null, crit));
View Full Code Here

Examples of org.python.core.PyList.sort()

            if (bindings == null)
                continue;
            for (String key : bindings.keySet())
                members.append(new PyString(key));
        }
        members.sort();
        return members;
    }

    // satisfy mapping and lookup
    @ExposedMethod
View Full Code Here

Examples of org.rssowl.core.persist.IFolder.sort()

   */
  public void run(IAction action) {
    List<?> list = fSelection.toList();
    if (!list.isEmpty() && list.get(0) instanceof IFolder) {
      IFolder folder = (IFolder) list.get(0);
      folder.sort();
      DynamicDAO.save(folder);
    }
  }

  /*
 
View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.NewsComparator.sort()

    /* By Title */
    comp.setSortBy(NewsColumn.TITLE);
    comp.setAscending(true);
    Object[] elements = new Object[] { news1, news2, news3 };
    comp.sort(null, elements);

    assertEquals("A News", ((INews) elements[0]).getTitle());
    assertEquals("B News", ((INews) elements[1]).getTitle());
    assertEquals("C News", ((INews) elements[2]).getTitle());

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.