A tool for detecting number ordering in an array of real numbers