Fixed using other packages subroutine as sort predicate

When byBamOrder was copy-pasted into every subroutine you can just use
it's name, but perl requires you to use prototypes in order to us
another packages subroutine as a sort predicate.