adds sort to small cal