You can't expect MD5 to give the same result with different order of data items - only the simplest checksum algorithms would do that.
A *checksum* algorithm will actually do that -- meaning take the sum and check it. Add all the characters together to form the checksum. This algorithm will not care about order since addition doesn't care about order.
Henry