Added functionality related to sorting and changing order of books