- started to modularize sort_demo