You can get the current URL using location.href
(or location.search
, since you're only interested in the query portion). Search it for your parameter, for instance using a regex:
if ( /order=1/.test(location.href) )
$("#commentload"+ID).append(html);
else
$("#commentload"+ID).prepend(html);
If you need a more general solution, see this related question (or this one, as suggested by @naveen).