Soft constraints for lexicographic orders