cfengine/core — pull request #926 by tzz (2013-09-04 14:33:59+00:00)
Title: Factor out numeric sorting and handle trailing garbage better

More consistent number parsing, always using `%lf` and only truncating to integers later if needed.