add spec file for sorting
add lib