class TopologicalSort {

    public List<IBootstrapItem<String>> getOrderedList(final boolean reverted) {
        if (reverted) {
            List<IBootstrapItem<String>> revertedSortedItemsList = this.sortedItems.subList(0, this.sortedItems.size());
            Collections.reverse(revertedSortedItemsList);
            return revertedSortedItemsList;
        }
        return this.sortedItems;
    }

      TopologicalSort(final List<IBootstrapItem<String>> items);

}