Added: Sort functions in ArrayPackage class + tests.