You can do something like this:
SELECT *,
(ACOS((SIN(RADIANS(ref_latitude))*SIN(RADIANS(latitude))) +
(COS(RADIANS(ref_latitude))*COS(RADIANS( latitude ))*COS(RADIANS( longitude)
-RADIANS(ref_longitude)))) * 6371) AS distance
FROM table
ORDER BY distance ASC
Point A: ref_latitude ref_longitude
Point B: Latitude Longitude
My Lat / Lon values are in degrees, for example:
Dresden: 13.721067614881400 / 51.060033646337900