fix workqueue creation time setting
Merge pull request #5015 from ticoann/fix_workqueue_element_sorting

fix workqueue creation time setting