'sortloot' revamp
commitb3b4953020d44fce51bdb5323d3517a2eee66b1f
authorPatR <rankin@nethack.org>
Sun, 13 Mar 2016 23:23:38 +0000 (13 16:23 -0700)
committerPatR <rankin@nethack.org>
Sun, 13 Mar 2016 23:23:38 +0000 (13 16:23 -0700)
treee8314a489c8c6440b8b2e59a00b5dfad9805ee58
parentb89e0a832f2767e441564fdc405f7eac73a1d6e5
'sortloot' revamp

Change the sortloot option to use qsort() instead of naive insertion
sort.  After sorting, it reorders the linked list into the sorted
order, so might have some subtle change(s) in behavior since that
wasn't done before.

pickup.c includes some formatting cleanup.

modified:
  include/extern.h, hack.h, obj.h
  src/do.c, do_wear.c, end.c, invent.c, pickup.c
include/extern.h
include/hack.h
include/obj.h
src/do.c
src/do_wear.c
src/end.c
src/invent.c
src/pickup.c