Fixed a bug with infinity when sorting by value change.