Problem I wrote a simple function to sort an array of integers in ascending order. Here is the code – […]

# Category: Sorting

## Python – insertion sort

Problem Series post – I am reading through Introduction to Algorithms, 3rd Edition implementing each algorithm as I read them. […]

## Test many sorting algorithms using Python and Nose

Problem I’m trying to learn how to build a good test suite, using simple sorting as an example. Particularly, I […]

## In-place quicksort algorithm in Python 2

Problem I have tried to implement an in-place quicksort Algorithm in Python 2. Please suggest how I can Make the […]

## String comparator as a lambda

Problem I am writing a Comparator for my TreeMap. It looks like this: private static final Comparator<String> CASE_INSENSITIVE_COMPARATOR = new […]

## Sorting ListView Columns

Problem I use these codes to re-order columns in a ListView in ascending or descending order: public static ObservableCollection<Inventory> SortedDailyCollection […]

## Allowing the user to alphabetize or randomize the contents of a text file

Problem As a newbie programmer, I decided to try my hand at making a program whose function actually might be […]

## Merge sort with a linked list

Problem I’d like this code reviewed. import java.util.NoSuchElementException; public class MergeSort { private Node first; private Node last; private static […]

## Reverse quick sort in Fortran

Problem I have written a quick sort routine to inplace sort an array in descending order: module sort contains recursive […]

## A New Sorting Algorithm

Problem I have designed an Algorithm for sorting numbers. This algorithm works by sorting an array of any length with […]