Active javascript order select after page is loaded


#1

Hi, I have a problem to order my selects in my application. My problem is that i have two languages Italian and German. When I retrieve the date from backend these are in German, so I order these strings… After I put these strings in view inside the translation tag…So if I have German is not a problem… The problem is if I have Italian the order is not correct, so I have to reorder the string in base of the language?

  1. Solution: Retrieve the data put in select call a function to order the element…but how can i call this function after the view is render?

2)Solution: Retrieve the data, translate the data and order…the problem is when i try to call the language object in the compontent.js i have the error undefined