Project 4: fix elapsedTime function
Project 4: fix sortObjectsByValue function