libperun

Class std.cont.Sorter

Synopsis

public static class Sorter

Utilities for sorting lists.

Fields

Constructors

Methods

public static void bubbleSort(List< Comparable< Object > > list,SortOrder order);

Sort the specified list using the bubble sort algorithm.

Arguments
listA list to be sorted.
orderThe sort order.
public static void bubbleSort(List< Comparable< Object > > list);

Sort the specified list using the bubble sort algorithm in ascending order.

Arguments
listThe list to be sorted.