Added training sorting by priority column