Java Util Array Sort Python Method Optional Variable