Arr::kvsort function allows array sorting based on both key and value