Fix #3440: Working set does not re-sort when automatic sort is turned on

This fixes the issue #3440 by sorting the working set after the Automatic Sort is enabled using the current sort method.