Pastes with sort tag

 

# Paste Title Author Source
1 #1a008d1a Binary Insertion Sort using Duff's Device Xinok
import std.range, std.algorithm, std.functional, std.array;

@trusted SortedRange!(R, less) binaryIn
2 #3648af1f Binary Insertion Sort using Duff's Device dejan
import std.range, std.algorithm, std.functional, std.array, std.stdio;

@trusted SortedRange!(R, les
3 #b85e7ad8 Partition Five Elements By Median in Six Comparisons Xinok
/+
	Partition five elements by median in six comparisons

	In another words, it sorts the elements s