code for join rides, to have enabled rides on top..sorted by date..