adj.
Drunk, with the result that people are arranged efficiently but no longer in their original order.
Llona became heapsorted and placed the guests according to height rather than acquaintance.
Source: Wiktionary