When will two groups be isomorphic??? [duplicate]

If two finite groups G and H have same element structure i.e. they both have same number of elements of every particular order,then will they be isomorphic to each other??If not,give some counter example. And what is the intuition behind having same element structure..?

marked as duplicate by Dietrich Burde, user228113, Derek Holt group-theory StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Jan 16 '17 at 11:42

• The answer is yes for abelian groups, but no in general. – Arthur Jan 16 '17 at 10:09
• can you give some counter example for non-abelian groups..?? – Sumit Mittal Jan 16 '17 at 10:11
• @Arthur -- Do you know of an example of two finite (non-abelian) groups which have the have the same number of elements of each order, and yet are not isomorphic? – quasi Jan 16 '17 at 10:12
• @Sumit Mittal -- We asked the same question at the same time!, – quasi Jan 16 '17 at 10:14
• @quasi This MO question, for instance, has some examples. – Arthur Jan 16 '17 at 10:16

No, that is not enough. The elementary abelian group $\;C_p\times C_p\times C_p\;$ of order $\;p^3\;$ and the Heisenberg group
$$H:=\left\{\;\;\begin{pmatrix} 1&a&b\\0&1&c\\0&0&1\end{pmatrix}\;/\;\;a,b,c\in\Bbb F_p\;\;\right\}$$
have both the same number of elements of each order (only order $\;p\;$ and $\;1\;$), yet one is abelian and the other one isn't.