View Single Post
Old 09-26-2011, 07:08 AM   #11
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 5,250
Karma: 821512
Join Date: Jan 2010
Location: France
Device: Many android devices
The problem is that the order of the languages in the two lists are not the same. Both are in database order, which is roughly the order that they were added to the library. The language_strings function does not sort the list. You are seeing it sorted because the GUI sorts it when it is displayed.

Try
Code:
{:'strcmp(list_sort(field('#original_language'), 0,','),language_strings(list_sort(field('languages'), 0, ','),0), 'No', 'Yes', 'No')'}
chaley is offline   Reply With Quote