I used to always just slap a border on my quilts. Sometimes this would work out and sometimes it would be wavy. It wasn’t until I learned the concept of measuring your quilt and cutting the border to match, that my quilts are square and lay flat.
Here are instructions on how to take those measurements.