Version 0.1.5: sorting added