Made sorted() raise an exception instead of aborting when given no arguments; moved around some things in objfun.c as a consequence