001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.data;
003
004/**
005 * Defines a model that can be sorted.
006 * @param <T> item type
007 * @since 15226
008 */
009public interface SortableModel<T> extends ReorderableModel<T> {
010
011    /**
012     * Sort the items.
013     */
014    void sort();
015
016    /**
017     * Reverse the items order.
018     */
019    void reverse();
020}