Erlang的堆排序
至于堆排内容和原理可以看一下博客
http://blog.csdn.net/feixiaoxing/article/details/6846664
http://www.cnblogs.com/dolphin0520/archive/2011/10/06/2199741.html
-module(heap_sort).
-compile(export_all).
%% 堆调整
heap_adjust(List, Start, End) when Start > End/2 -> List;
heap_adjust(List, Start, End) ->
heap_adjust_helper(List, Start, End).
heap_adjust_helper(List, Start, En