implimenting post sort