Java · 2D arrays, searching and sorting

Insertion sort

Card players sort a hand by sliding each new card into place, and that is a sort that finishes fast on nearly sorted data.