added proper date sorting for votes