Was Islam spread by the sword?
No.
For example:
Spread of
Islam in Sudan:
[7]
Islam is the largest religion in Sudan, and Muslims have dominated national government institutions since independence in 1956. According to UNDP Sudan, the Muslim population is 97%,[1] including numerous Arab and non-Arab groups.
Ethnicity of the Muslim population in Sudan
Masalit, Daju and Berti
Of other peoples living in Darfur who spoke Nilo-Saharan languages and are Muslim, the most important were the Masalit, Daju, and Berti. All were primarily cultivators living in permanent villages, but they practiced animal husbandry in varying degrees.
The Masalit, living on the Sudan-Chad border, were the largest group. Historically under a minor sultanate, they were positioned between the two dominant sultanates of the area, Darfur and Wadai (in Chad). A part of the territory they occupied had been formerly controlled by the Fur, but the Masalit gradually encroached on it in the first half of the twentieth century in a series of local skirmishes carried out by villages on both sides, rather than the sultanates. In 1990-91 much of Darfur was in a state of anarchy, with many villages being attacked. There were many instances in which Masalit militias attacked Fur and other villages.
The Berti consisted of two groups. One lived northeast of Al Fashir; the other had migrated to East Darfur and West Kurdufanprovinces in the nineteenth century. The two Berti groups did not seem to share a sense of common identity and interest. Members of the western group, in addition to cultivating subsistence crops and practicing animal husbandry, gathered gum arabic for sale in local markets. The Berti language had largely given way to Arabic as a home language.
The term Daju was a linguistic designation that was applied to a number of groups scattered from western Kurdufan and southwestern Darfur states to eastern Chad. These groups called themselves by different names and exhibited no sense of common identity.
Islam in Sudan - Wikipedia, the free encyclopedia
I don't see any sword in spread of Islam in Sudan.
Regards