Sort observers by priority field before applying them