putting date sorting into people