Sort and filter packages separately