adding interfaces for different library sorting methods