modified: archive sort algorithms

Signed-off-by: Hu Fu <askfuhu@gmail.com>