Added sorting of sets before setting datasource

Signed-off-by: BunnyRabbit2 <iamlewisstorey@yahoo.com>