I agree with the first commenter, that the gerund phrase is “Sorting socks.”
A gerund phrase consists of a gerund(a root verb that acts as a noun, adding -ing in the end — this is in a present participle form), plus other objects or modifiers.
In the given sentence, the gerund phrase acts as the subject.