fixed median arithmetic order