Ailly-sur-Noye is a commune in the Somme department in Hauts-de-France in northern France.