sort sample values as string