Removed time from struct candidates and fixed sort to compare with integers