1. sort @a returns an array, namely the sorted version of @a. 2. shift takes an array as argument and returns a scalar.