Fixed a bug in holdings sorting.