Fixed commit sorting problems