Sort 1 int array into 2 int arrays with the smallest difference between the 2

How would i go about splitting 1 array into 2 arrays with as little difference between them, for matchmaking?

Give an example, please.