Fixed bug in order RegExp