/*******************************************************************************
- * Copyright (c) 2007, 2018 Association for Decentralized Information Management
+ * Copyright (c) 2007, 2020 Association for Decentralized Information Management
* in Industry THTH ry.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
*
* Contributors:
* VTT Technical Research Centre of Finland - initial API and implementation
- * Semantum Oy - gitlab #66 - parallel/spatial optimization
+ * Semantum Oy - gitlab #60, #454 - parallel/spatial optimization
*******************************************************************************/
package org.simantics.g2d.diagram.handler.impl;
if (!result.isEmpty()) {
if (request.pickSorter != null) {
List<IElement> elems = new ArrayList<>(result);
- request.pickSorter.sort(elems);
+ request.pickSorter.sort(request, elems);
finalResult.addAll(elems);
} else {
finalResult.addAll(result);