add sorting by click
some modified