Fix minor bug, improve samples

Fix a bug when ordering with a localized field
Add localization example and some console ouptputs