Use STABLE-SORT instead of SORT when sorting slot name lists
commit2d2a267b5a2ce7db080574d7de6b8088f3ffef84
authorJan Moringen <jmoringe@techfak.uni-bielefeld.de>
Sun, 17 Jul 2016 11:16:28 +0000 (17 13:16 +0200)
committerJan Moringen <jmoringe@techfak.uni-bielefeld.de>
Sun, 17 Jul 2016 12:08:31 +0000 (17 14:08 +0200)
tree3893c37724f8e4b379a665d203766a62dfd41fac
parent0038790653e05feb0d87384845edadd6dade29b8
Use STABLE-SORT instead of SORT when sorting slot name lists

Sorting slot name lists is intended to reduce the number of interned
permutation vectors. After 93b0a4e, the sort predicate no longer takes
symbol packages into account. Thus, SORT may produce any permutation for
identically named symbols with different home packages. Using
STABLE-SORT improves this a bit by at least keeping the original order.

Suggested-by: Douglas Katzman <dougk@google.com>
src/pcl/vector.lisp