reverse sorting working too