sign function should sort the param keys