bug resolved in function  api_is_western_name_order()  - refs #7241

this function api_is_western_name_order()  is only valid in the built sql QUERY. 
but does not validate the order the array that is used to paint the report.