Java Array Sort With Lambda Python Pandas