Sorted library