Ionic solids have large energy of sublimation and dissociation, still they can form ionic compounds because:
High electron affinity.
High electronegativity.
High lattice enthalpy.
High free energy.
Because of the high lattice enthalpy, the ionic solids are formed. High lattice enthalpy compensates for high heat of sublimation and dissociation.
Study 40% syllabus and score up to 100% marks in JEE