Although, sweep attack isn’t available for all versions of Minecraft such as – Pocket edition, Windows 10 Edition, Education edition, or any console version. It is only available for the Java edition of Minecraft.
This sweep attack is added to Minecraft when Mojang bought out the version of Minecraft 1.9 with lots of important updates which help you and rotate around you during the fights in the game.